﻿import {requestService} from '@/utils/request'

export function getList(data) {
  return requestService({
    url: '/vue-admin-template/table/list',
    method: 'post',
    headers:{
      "Content-Type":"application/json;charset=UTF-8"
    },
    data
  })
}

export function setId(params){
  return requestService({
    url:'/vue-admin-template/table/setid',
    method: 'post',
    params
  })
}

export function delId(params){
  return requestService({
    url:'/vue-admin-template/table/delid',
    method: 'post',
    params
  })
}

export function Modify(data){
  return requestService({
    url:'/vue-admin-template/table/modifyid',
    method: 'post',
    data
  })
}
export function upload(data) {
  return requestService({
    url: '/vue-admin-template/table/upload',
    method: 'post',
    headers: {
      "Content-Type": "multipart/form-data; boundary=----"
    },
    data: data
  })
}
export function uploadBig(data) {
  return requestService({
    url: '/vue-admin-template/table/uploadbig',
    method: 'post',
    headers: {
      "Content-Type": "multipart/form-data; boundary=----"
    },
    data: data
  })
}